/**
 * Copyright (c) 2011 Nokia Corporation.
 */

import QtQuick 1.0

Rectangle {
    property alias text: labelText.text
    property int fontPixelSize: 20

    width: 200 // Default width
    height: 100 // Default height
    radius: height * 1 / 3;
    smooth: true

    gradient: Gradient {
        GradientStop { position: 0.0; color: "#555555" }
        GradientStop { position: 1.0; color: "#222222" }
    }

    // Inner rectangle to make borders
    Rectangle {
        width: parent.width - 4
        height: parent.height - 4
        anchors.centerIn: parent
        radius: height * 1 / 3;
        color: "#55000000"
        smooth: true
    }

    Text {
        id: labelText
        anchors.fill: parent
        anchors.leftMargin: 20
        anchors.rightMargin: 20
        verticalAlignment: Text.AlignVCenter
        color: "#eeeeee"
        font.pixelSize: fontPixelSize
        elide: Text.ElideRight
    }
}

// End of file.
